//
//  Macro.h
//  Sth_On_The_Road
//
//  Created by Leo_Lei on 4/11/17.
//  Copyright © 2017 Leo_Lei. All rights reserved.
//

#ifndef Macro_h
#define Macro_h

//***********************************基础配置************************************
/*设备型号*/
#define kiOS_7_OR_LATER         ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
#define kiOS_8_OR_LATER         ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)

/*屏幕尺寸*/
#define kScreenWidth            [UIScreen mainScreen].bounds.size.width
#define kScreenHeight           [UIScreen mainScreen].bounds.size.height

/*字体*/
#define kBoldFont(x)            [UIFont boldSystemFontOfSize:x]
#define kSystemFont(x)          [UIFont systemFontOfSize:x]

/*颜色*/
#define kRGBColor(R, G, B, A)   [UIColor colorWithRed:R / 255.0f green:G / 255.0f blue:B / 255.0f alpha:A]

/*基础背景色*/
#define kBackgroundColor        kRGBColor(239, 239, 239, 1)

/*搜索页背景色*/
#define kSearchBGColor          kRGBColor(232, 235, 244, 1)

//------------------------------------导航栏-------------------------------------
/*导航栏背景色*/
#define kNavBGColor             kRGBColor(221, 81, 114, 1)

//------------------------------------标签栏-------------------------------------
/*按钮文字颜色*/
#define kBarButtonTextColor     kRGBColor(103, 103, 103, 1) //标签栏按钮文字颜色
#define kBarButtonTextHighColor kRGBColor(244, 70, 97, 1)   //标签栏按钮文字高亮颜色

#endif /* Macro_h */
